package org.dom4j.tree;

import org.dom4j.CDATA;
import org.dom4j.Element;

public class DefaultCDATA extends DefaultCharacterData implements CDATA {
  
  public DefaultCDATA(Element parent, String text) {
    super(parent, text);
  }
  
  public String asXML() {
    return "<![CDATA[" + getText() + "]]>";
  }
  
  public String getName() { 
    return "CDATA";
  }
}
